package com.cjkj.applet.domain;

import java.util.Date;

import com.cjkj.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备使用记录对象 t_equipment_usage_records
 *
 * @author cjkj
 * @date 2024-08-30
 */
public class TEquipmentUsageRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 使用记录ID */
    private Long useId;

    /** 就诊号 */
    private Long visitNo;

    /** 设备ID */
    private String equipmentId;

    /** 设备类型 */
    private String equipmentType;

    /** 设备编号 */
    private String equipmentNo;

    /** 使用标志位：0=使用中，1=使用结束 */
    private String useFlag;

    /** 设备开始使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 设备结束使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 医院ID */
    private String hospitalId;

    /** 科室ID */
    private String deptId;

    /** 使用地点（在家或在院） */
    private String place;

    /** 是否达标：0=否，1=是（用于多参数监测仪判断是否使用达标） */
    private String useStatus;

    /** 删除标识（0=正常，2=删除） */
    private String delFlag;

    public void setUseId(Long useId)
    {
        this.useId = useId;
    }

    public Long getUseId()
    {
        return useId;
    }
    public void setVisitNo(Long visitNo)
    {
        this.visitNo = visitNo;
    }

    public Long getVisitNo()
    {
        return visitNo;
    }
    public void setEquipmentId(String equipmentId)
    {
        this.equipmentId = equipmentId;
    }

    public String getEquipmentId()
    {
        return equipmentId;
    }
    public void setEquipmentType(String equipmentType)
    {
        this.equipmentType = equipmentType;
    }

    public String getEquipmentType()
    {
        return equipmentType;
    }
    public void setEquipmentNo(String equipmentNo)
    {
        this.equipmentNo = equipmentNo;
    }

    public String getEquipmentNo()
    {
        return equipmentNo;
    }
    public void setUseFlag(String useFlag)
    {
        this.useFlag = useFlag;
    }

    public String getUseFlag()
    {
        return useFlag;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setHospitalId(String hospitalId)
    {
        this.hospitalId = hospitalId;
    }

    public String getHospitalId()
    {
        return hospitalId;
    }
    public void setDeptId(String deptId)
    {
        this.deptId = deptId;
    }

    public String getDeptId()
    {
        return deptId;
    }
    public void setPlace(String place)
    {
        this.place = place;
    }

    public String getPlace()
    {
        return place;
    }
    public void setUseStatus(String useStatus)
    {
        this.useStatus = useStatus;
    }

    public String getUseStatus()
    {
        return useStatus;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("useId", getUseId())
                .append("visitNo", getVisitNo())
                .append("equipmentId", getEquipmentId())
                .append("equipmentType", getEquipmentType())
                .append("equipmentNo", getEquipmentNo())
                .append("useFlag", getUseFlag())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("hospitalId", getHospitalId())
                .append("deptId", getDeptId())
                .append("place", getPlace())
                .append("useStatus", getUseStatus())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
